import request from '@/z/function/request.js';

// 工人管理-工人管理列表-添加
export function getAdd(query) {
	return request({
		url: '/pigx-logistics/workerManagement',
		method: 'post',
		data: query,
	});
}
// 工人管理-工人管理列表-修改
export function getupdate(query) {
	return request({
		url: '/pigx-logistics/workerManagement',
		method: 'PUT',
		data: query,
		header: {
			'content-type': 'application/json'
		},
	});
}
// 工人管理-工人管理列表-删除
export function getDelete(query) {
	return request({
		url: '/pigx-logistics/workerManagement',
		method: 'DELETE',
		data: query,
	});
}
// 工人管理-工人管理列表-查询
export function getPage(query) {
	return request({
		url: '/pigx-logistics/workerManagement/page',
		method: 'get',
		data: query,
	});
}
export function getPageid(id) {
	return request({
		url: `pigx-logistics/workerManagement/${id}`,
		method: 'get',
	});
}